package com.acme.bankapp.domain.bank;


public class Client {
	private String name;
	private Gender gender;
	private Account account;

	public Client(String name, Gender gender) {
		this(name, gender, null);
	}
	
	public Client(String name, Gender gender, Account account) {
		this.name = name;
		this.gender = gender;
		this.account = account;
	}
	
	public void setAccount(Account account) {
		this.account = account;
	}

	public String getClientSalutation() {
		return gender.getSalutation() + name;
	}

	public Account getAccount() {
		return account;
	}

	public String getName() {
		return name;
	}
	
	@Override
	public String toString() {
		return name;
	}
}
